using System;
using System.Collections.Generic;
using System.Text;

namespace Forecast.Database
{
    public class NewsItem
    {
        #region Enums

        public enum ColumnName
        {
            None,
            ID,
            Title,
            News_message,
            News_date,
            Prediction_id,
            Player_id,
            Should_be_shown_in_main_news
        }

        #endregion
        #region Variables

        public static string TABLE_NAME = "NewsItem";

        private int _id;
        private string _title;
        private string _message;
        private int _playerId;
        private int _predictionId;
        private DateTime _newsDate;
        private bool _shouldBeShownInMainNews;

        #endregion
        #region Properties

        public bool ShouldBeShownInMainNews
        {
            get { return _shouldBeShownInMainNews; }
            set { _shouldBeShownInMainNews = value; }
        }

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        public int PlayerId
        {
            get { return _playerId; }
            set { _playerId = value; }
        }

        public int PredictionId
        {
            get { return _predictionId; }
            set { _predictionId = value; }
        }

        public DateTime NewsDate
        {
            get { return _newsDate; }
            set { _newsDate = value; }
        }

        #endregion
    }
}
